<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>javasctript thread and html render thread</title>
</head>
<body>
    <span>before script</span>
    <script>
        var i = 1;
        while(i < 10){
            i++;
            console.log(i);
        }
    </script>
    <span>after script</span>
    <img src="http://pic.4j4j.cn/upload/pic/20130306/5943d885a6.jpg?t=5" alt="大图">
    
</body>
</html>